import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_52 =  {
    title: {
      ...CardEditableParamsDefault.InputNormal,
      label: '标题',
      placeholder: '请填入标题',
    },
    width: {  // Number
      ...CardEditableParamsDefault.SliderNormal,
      label: '图片宽度比',
      max: 100,
      step: 5,
      unit: '%',
    },
    height: { // Number
      ...CardEditableParamsDefault.SliderNormal,
      label: '图片高度比',
      max: 100,
      step: 5,
      unit: '%',
    },
    type: {  // 1表示只有描述信息、2表示有描述信息和价格信息
      ...CardEditableParamsDefault.DropdownNormal,
      label: '信息展示类型',
      placeholder: '请选择展示类型',
      valLists: [
        {
          name: '只有描述信息',
          value: '1',
        },
        {
          name: '描述信息+价格信息',
          value: '2',
        },
      ],
    },
    items: {  // TODO:
      ...CardEditableParamsDefault.Lists,
      label: '添加图片',
      limit: 2,
      param_params: {
        pic: {
          ...CardEditableParamsDefault.ImageNormal,
          label: '缩略图',
          res_type: 'String',  // Array : fileList, String : value
          placeholder: '尺寸严格按照设置的宽高，小于200kb，jpg,jpeg,png格式',
          limit: 1,
          size: 200,
          accept: '.jpg, .jpeg, .png',
          tooltips: TooltipsData.image[4],
        },
        // pic_big: {
        //   ...CardEditableParamsDefault.ImageNormal,
        //   label: '大图',
        //   res_type: 'String',  // Array : fileList, String : value
        //   placeholder: '尺寸严格按照设置的宽高，小于200kb，jpg,jpeg,png格式',
        //   limit: 1,
        //   size: 500,
        //   accept: '.jpg, .jpeg, .png',
        // },
        pic_scheme: {
          ...CardEditableParamsDefault.InputNormal,
          label: '图片跳转链接',
          placeholder: '请填入图片跳转链接',
          tooltips: TooltipsData.CARD_52[1],
        },
        scheme: {
          ...CardEditableParamsDefault.InputNormal,
          label: '跳转链接',
          placeholder: '请填入文字跳转链接',
          tooltips: TooltipsData.CARD_52[1],
        },
        title: {
          ...CardEditableParamsDefault.InputNormal,
          label: '标题',
          placeholder: '请填入标题',
        },
        desc1: {
          ...CardEditableParamsDefault.TextareaNormal,
          label: '描述',
          placeholder: '请填入描述',
          param_effect_parent: {
            effect_parent_keys: ['type'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: '1',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        price2: {
          ...CardEditableParamsDefault.InputNormal,
          label: '价格',
          placeholder: '请填入价格',
          param_effect_parent: {
            effect_parent_keys: ['type'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: '2',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        desc2: {
          ...CardEditableParamsDefault.InputNormal,
          label: '价格类型的描述',
          placeholder: '请填入价格类型的描述',
          param_effect_parent: {
            effect_parent_keys: ['type'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: '2',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        object_type: {
          ...CardEditableParamsDefault.DropdownNormal,
          label: '媒体类型',
          placeholder: '请选择媒体类型',
          tooltips: TooltipsData.CARD_52[0],
          valLists: [
            {
              name: '无',
              value: '',
            },
            {
              name: 'video',
              value: 'video',
            },
            {
              name: 'uid',
              value: 'uid',
            },
          ],
        },
        Idx_mid: {
          ...CardEditableParamsDefault.InputNormal,
          label: '媒体博文Mid',
          placeholder: '请填入Mid',

          param_effect_parent: {
            effect_parent_keys: ['items', 'ARRAY_NUM', 'object_type'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: 'video',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        Idx_uid: {
          ...CardEditableParamsDefault.InputNormal,
          label: 'Uid',
          placeholder: '请填入Uid',

          param_effect_parent: {
            effect_parent_keys: ['items', 'ARRAY_NUM', 'object_type'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: 'uid',
            effect_clear: {  // 有则 清除
              effect_clear_default_val: null,  // default
            },
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_52;
